﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Task.aspx.cs" Inherits="Task" %>

<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" href="assets/css/reset.css" type="text/css" />
    <link rel="stylesheet" href="assets/css/styleexpress.css" type="text/css" />
    <link rel="stylesheet" href="assets/css/invalid.css" type="text/css" media="screen" />

    <script src="assets/js/jquery.js" type="text/javascript"></script>

    <script src="assets/js/jquery.validate.js" type="text/javascript"></script>

    <script type='text/javascript' src="assets/js/common.js"></script>

    <script type="text/javascript">
        function ReloadOpener() {
            var pageno = getUrlVars()["page_number"];
            var ext = "";
            if (typeof pageno != "undefined") {
                ext = "&page_number=" + pageno;
            }
            window.opener.location.href = "Tasking.aspx?" + ext;
            window.close();
        }
    </script>

</head>
<body>
    <div id="backgroundPopup">
    </div>
    <div id="body-wrapper">
        <div id="main-content1" style="padding: 0px; margin-left: 5px;">
            <div class="content-box">
                <form id="frmEdit" runat="server" method="post">
                    <div class="content-box-header">
                        <h3 style="cursor: s-resize;">
                            Cập nhật Tasking
                            <div class="clear">
                            </div>
                    </div>
                    <fieldset class="adminform">
                        <table class="adminedit" style="width: 100%;">
                            <tr>
                                <th align="center" width="10%">
                                    Task Name
                                </th>
                                <td style="vertical-align: top">
                                    <CKEditor:CKEditorControl ID="txtName" runat="server" Toolbar="Bold|Italic|Underline|Strike|FontSize|TextColor|BGColor"
                                        Height="75px"></CKEditor:CKEditorControl>
                                </td>
                            </tr>
                            <tr>
                                <th align="center">
                                    Att file
                                </th>
                                <td style="vertical-align: top">
                                    <div class="uni-uploader">
                                        <input id="txtFileName1" type="file" name="txtFileName1" runat="server" tabindex="2"
                                            size="10">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <th align="center">
                                    Comment
                                </th>
                                <td style="vertical-align: top">
                                    <CKEditor:CKEditorControl ID="txtComment" runat="server" Toolbar="Bold|Italic|Underline|Strike|FontSize|TextColor|BGColor"
                                        Height="75px"></CKEditor:CKEditorControl>
                                </td>
                            </tr>
                            <tr>
                                <th align="center">
                                    Att file
                                </th>
                                <td style="vertical-align: top">
                                    <div class="uni-uploader">
                                        <input id="txtFileName2" type="file" name="txtFileName2" runat="server" tabindex="4"
                                            size="10"></div>
                                </td>
                            </tr>
                        </table>
                        <table class="paramlist admintable" width="100%">
                            <tr>
                                <th align="center">
                                    Coder
                                </th>
                                <td style="vertical-align: top">
                                    <asp:TextBox class="cls" ID="txtSourceName" runat="server" Width="100%" TabIndex="5"></asp:TextBox>
                                </td>
                                <th align="center">
                                    Timing
                                </th>
                                <td style="vertical-align: top">
                                    <asp:TextBox class="cls" ID="txtDateEstimate" runat="server" Width="100%" TabIndex="6"></asp:TextBox>
                                </td>
                                <th align="center">
                                    Priority
                                </th>
                                <td style="vertical-align: top">
                                    <asp:TextBox class="cls" ID="txtPriority" runat="server" Width="100%" TabIndex="7"></asp:TextBox>
                                </td>
                                <th align="center">
                                    Coding
                                </th>
                                <td style="vertical-align: top">
                                    <asp:DropDownList ID="drpCoding" runat="server" Width="80px" DataTextField="Ten"
                                        DataValueField="ID">
                                        <asp:ListItem Value="0">Open</asp:ListItem>
                                        <asp:ListItem Value="1">Start</asp:ListItem>
                                        <asp:ListItem Value="3">Completed</asp:ListItem>
                                        <asp:ListItem Value="2">Not Complete</asp:ListItem>
                                        <asp:ListItem Value="4">Closed</asp:ListItem>
                                        <asp:ListItem Value="5">Archived</asp:ListItem>    
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="5">
                                    <asp:Label ID="ErrMessage" runat="server" CssClass="error"></asp:Label>
                                </td>
                            </tr>
                        </table>
                        <table class="paramlist admintable" width="100%">
                            <tr>
                                <td>
                                </td>
                            </tr>
                        </table>
                        <div class="clear" style="height: 32px">
                        </div>
                        <style type="text/css">
                            #footer
                            {
                                padding: 2px;
                                border: 1px solid #5b958e;
                                background-color: #e9eae5;
                                width: 98%;
                                bottom: 0px;
                                position: fixed;
                                height: 30px;
                            }
                        </style>
                        <div style="display: inline;" id="footer">
                            <asp:Button class="button" ID="btnSave" runat="server" TabIndex="9" Text="Save" OnClick="btnSave_Click" />
                            <input type="button" id="Exit" value="Exit" class="button" onclick="ReloadOpener();" />
                        </div>
                    </fieldset>
                </form>
            </div>
        </div>
    </div>

    <script type="text/javascript">
//    CKEDITOR.replace( 'txtComment',
//    {
//        toolbar : 'Full', /* this does the magic */
//        uiColor : '#9AB8F3'
//    });
//    
//    CKEDITOR.replace('txtContentItemDetail',
//{
//     skin : 'kama',
//     toolbarStartupExpanded : false,
//     toolbar : 'Full',
//     filebrowserBrowseUrl : '/tools/FileManager/index.html',
//     filebrowserImageBrowseUrl : '/tools/FileManager/index.html?type=Images',
//     filebrowserFlashBrowseUrl : '/tools/FileManager/index.html?type=Flash'
//} ) ;

    </script>

</body>
</html>
